<?php
class Helper_Validation{
public $err;
	public function check_empty($text,$error){
		if($text == ""){
			$this->err[]=$error;
		}
	}
	public function matches($text1,$text2,$error){
		if($text1 != $text2){
			$this->err[]=$error;
		}
	}
	
	public function valid(){
		if($this->err != ""){
			return FALSE;
		}else{
			return TRUE;
		}	
	}
	
}
